package thread.demo.concurrentMap;

import java.util.concurrent.ConcurrentHashMap;

public class ConcurrentMapTest002_Put {
  public static void main(String[] args) {
    ConcurrentHashMap<Integer, String> map = new ConcurrentHashMap<>();
    
    for (int i = 0; i < 10000; i++) {
      map.put(i, "Value" + i);
      map.put(i + 1000, "Value" + (i + 1000)); // 与前一个键哈希值相同
    }
  }
}
